<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title> 特价物品 - <?=SITE_NAME?> </title>
<?php include VIEWS.'header.html'?>
</head>

<body>
<?php include VIEWS.'topbar.html'?>

<div id="content">

    <?php include VIEWS.'leftnav.html'?>

    <div id="right">

    <?php include VIEWS.'sidesearch.html'?>
    <h1>特价物品</h1>
    <div style="float:right" class="px12">
    &#8250; <script type="text/javascript">needHelp();</script><noscript><a href="<?php echo $_servername?>/forum/service/?from=itemlist" target="_blank">需要帮助？</a></noscript>&nbsp;&nbsp;
    </div>

<?php include VIEWS.'shopcarinfo.html'?>
<?php if (count($list['list'])==0):?><div class="errbox roundNormal">&nbsp;&nbsp;&nbsp;暂时没有特价物品，为何不看看我们有哪些 <a tabindex="1" href="/whatnew.php" class="white">新品上架</a></div>
<?php else:?>

<br clear="all" />
<div class="itemlist" id="itemlist">
<?php foreach ($list['list'] as $v):
$i++;
do_action('view_whathoffer_item', array('item'=>&$v));
?>
    <div class="px11" style="margin-right:10px;float:right;color:#808080">查看次数: <?php echo $v['views']?></div>
    <table style="margin-left:20px">
    <tr>
    <td width="200" align="center"><div class="items" id="item<?php echo $v['id']?>"><a href="/<?php echo $v['id']?>" style="background:transparent"><img src="/images/items/s/<?php echo $v['model']?>.gif" width="150" height="150" alt="<?php echo $v['name']?>" class="<?php echo ($v['stocknum'] == 0 ? '' : ' hand')?>" /></a></div></td>
    <td>
    <font class="price">&yen; <?php echo preg_replace('/^(\d+)\.(\d+)$/', '$1.<font size="-2">$2</font>', $v['price1'])?></font>
    &nbsp;&nbsp;<font class="price_small">节省 &yen; <?php echo $v['price2']-$v['price1']?></font>
    <br />
    <b><a tabindex="2" href="/<?php echo $v['id']?>"><?php echo $v['name']?></a></b><br />
    <b>原价：</b><?php echo $v['price2']?><br />
    <?php if($v['title']):?><b>说明：</b><?php echo $v['title']?><br /><?php endif;?>
    <b>材质：</b><?php echo $v['stuff']?><br />
    <?php
    //个性属性
    if(is_array($v['cols'])) {
        for($_i=1; $_i<=5; $_i++) {
            if ($v['cols']['key'.$_i] && $v['cols']['val'.$_i] && $v['cols']['key'.$_i] == '品牌') {
                $brand = $v['cols']['val'.$_i];
                if (strtolower($v['cols']['val'.$_i]) == 'loopo choice') $brand = 'LooPo';
                echo "<b>{$v['cols']['key'.$_i]}：</b><a style='text-decoration:none' href='/brand/$brand'>{$v['cols']['val'.$_i]}</a><br />";
            }
        }
    }
    ?>
    <br />
    <a tabindex="2" href="/addtocar/<?php echo $v['id']?>" onclick="javascript:addtocar(<?php echo $v['id']?>);this.href='#top'"><span class="sprites btn_addtocar">加入购物车</span></a>
    <script type="text/javascript">new Draggable('item<?php echo $v['id']?>',{revert:true,onDrag:function(element){__dg(element)},onEnd:function(element){__de(element)}})</script>
    </td>
    </tr>
    </table>
    <?php if($i<>count($list['list'])):?><hr size="1" /><?php endif?>
    <?php endforeach;?>
</div>

<br clear="all" />

<?php include VIEWS.'pages.html'?>

<?php endif;?>

    </div>
</div>

<?php include VIEWS.'copyright.html'?>

</body>
</html>
